
/**
 * 500Mhz PC, Sun Ultra 60:
 * System.currentTimeMillis() costs 0.0010 ms
 */
public class CurrentTime
{
    public static void main(String[] args) {
	long t0 = System.currentTimeMillis();
	long n = 0;
	for(int i = 0; i < 9998; i++) {
	    n += System.currentTimeMillis();
	}
	long t1 = System.currentTimeMillis();
	double cost = (double)(t1 - t0) / 10000.0;
	System.out.println("System.currentTimeMillis() costs " + cost + " ms");
    }
}
